﻿using Baidu.Push.Api.Util;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace Baidu.Push.Api.Parser
{
    public static class PushJsonParser
    {
        public static T Parse<T>(string body)
        {
            return JsonConvert.DeserializeObject<T>(body);
        }

        public static string Serialize<T>(T obj)
        {
            return JsonConvert.SerializeObject(obj);
        }
    }
}
